package com.jyy.prefabricated.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.jyy.prefabricated.entity.StudentSignUpApply;
import lombok.Data;

@Data
public class EnrollsProjectData {

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名", index = 0)
    private String name;
    /**
     * 性别
     */
    @ExcelProperty(value = "性别", index = 1)
    private String sex;
    /**
     * 身份证号码
     */
    @ExcelProperty(value = "身份证号码", index = 2)
    private String idCard;
    /**
     * 专业
     */
    @ExcelProperty(value = "所学专业", index = 3)
    private String major;
    /**
     * 学历
     */
    @ExcelProperty(value = "学历", index = 4)
    private String educationBackground;
    /**
     * 联系电话
     */
    @ExcelProperty(value = "联系电话", index = 5)
    private String tel;
    /**
     * 毕业院校
     */
    @ExcelProperty(value = "毕业院校", index = 6)
    private String school;


    public StudentSignUpApply toStudentSignUpApply() {
        StudentSignUpApply studentSignUpApply = new StudentSignUpApply();
        studentSignUpApply.setIdCard(idCard);
        studentSignUpApply.setSchool(school);
        studentSignUpApply.setTel(tel);
        studentSignUpApply.setName(name);
        studentSignUpApply.setMajor(major);
        return studentSignUpApply;
    }
}
